<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>

    let s = new Set([1,2,3,3,4,2,2,5,6,7,5]);
    console.log(s);

    // 可以通过size属性获得Set数据结构的数据的长度
    console.log(s.size);
</script>



</body>
</html>